<%@ page language="java" isELIgnored="false" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/>
<fmt:setBundle basename="bundles.thesiscommittee-resources"/>
<head>
<title>List <fmt:message key="thesiscommittee.title"/>s</title>
</head>
<body>
<div id="mainBody" >
	<div class="title">Manage <fmt:message key="thesiscommittee.title"/>s</div>
	<div id="search">
        <div id="searchBox">
        	<form method="post" action="search.html">
            <textarea id="searchTerm" name="searchTerm" rows="1"></textarea><button id="goButton">GO</button><button id="advancedSearch">AS</button>
            </form>
        </div>
    </div>
    <div class="navitem"><a class="button" href="${pageContext.request.contextPath}/newThesiscommittee"><span><img src="${pageContext.request.contextPath}/includes/images/icons/new.gif" /><fmt:message key="navigation.new"/> <fmt:message key="thesiscommittee.title"/></span></a></div>
  	<div id="body">
    	<div id="table">
        	<div class="header">
                <div>&nbsp;</div>
                <div>Chair</div>
                <div>Member1</div>
                <div>Member2</div>
                <div>Member3</div>
                <div>Member4</div>
                <div>Member5</div>
            </div>
            <c:forEach items="${thesiscommittees}" var="current">
            <div class="row">
            	<div>
            		<a title="<fmt:message key="navigation.view" />" href="${pageContext.request.contextPath}/selectThesiscommittee?thesisCommitteeIdKey=${current.thesisCommitteeId}&"><img src="includes/images/icons/view.gif" /></a>
					<a title="<fmt:message key="navigation.edit" />" href="${pageContext.request.contextPath}/editThesiscommittee?thesisCommitteeIdKey=${current.thesisCommitteeId}&"><img src="includes/images/icons/edit.gif" /></a>
					<a title="<fmt:message key="navigation.delete" />" href="${pageContext.request.contextPath}/confirmDeleteThesiscommittee?thesisCommitteeIdKey=${current.thesisCommitteeId}&"><img src="includes/images/icons/delete.gif" /></a>
            	</div>
            	<div>${current.facultyByChair.lastName}, ${current.facultyByChair.firstName}</div>
            	<div>${current.facultyByCommitteeMember1.lastName}, ${current.facultyByCommitteeMember1.firstName}</div>
            	<div>${current.facultyByCommitteeMember2.lastName}, ${current.facultyByCommitteeMember2.firstName}</div>
            	<div>${current.facultyByCommitteeMember3.lastName}, ${current.facultyByCommitteeMember3.firstName}</div>
            	<div>${current.facultyByCommitteeMember4.lastName}, ${current.facultyByCommitteeMember4.firstName}</div>
            	<div>${current.facultyByCommitteeMember5.lastName}, ${current.facultyByCommitteeMember5.firstName}</div>
            </div>
            </c:forEach>
        </div>
        
	</div>
</div>
</body>